package com.itheima.domain.mongo;


import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.MongoId;

import java.io.Serializable;
import java.util.Date;

/**
 * mysql的id好像格式对不上，换回mongo
 */
@Data
@Document(collection = "questionnaire")
public class Questionnaire implements Serializable {
    private ObjectId id;//问卷id
    private String name;//问卷名称
    private String cover;//封面
    private String level;//问卷等级
    private Integer star;//问卷星别
    private Date created;
    private Date updated;


}
